//
//  SEGEditUserViewModel.h
//  SEGViewModel
//
//  Created by 山刘 on 2020/11/24.
//

#import <Foundation/Foundation.h>
#import "SEGSelectauthorityroleManager.h"
#import "SEGQueryauthinfoManager.h"
#import "SEGUserinsertuserManager.h"
#import "SEGSelectauthorityroleModel.h"
#import "SEGUserinsertuserManager.h"

typedef NS_ENUM(NSUInteger, SEGEnumEditUsersType) {
    SEGEnumEditUsersType_Add = 0, /*新增*/
    SEGEnumEditUsersType_Edit = 1, /*修改*/
};

NS_ASSUME_NONNULL_BEGIN

@interface SEGEditUserViewModel : NSObject
@property (nonatomic, strong, readonly) RACCommand *requestCommand;
@property (strong, nonatomic, readonly) RACSubject *messageSubject;

@property (nonatomic, strong, readonly) RACCommand *authCommand;
@property (nonatomic, strong, readonly) RACCommand *userUpdateCommand;
@property (nonatomic, strong, readonly) RACCommand *delUserCommand;


@property (nonatomic, copy) NSString *name;
@property (nonatomic, copy) NSString *tel;
@property (nonatomic, copy) NSString *roleId;
@property (nonatomic, copy) NSString *enterpriseUserId;
@property (nonatomic, assign) SEGEnumEditUsersType type;
@property (nonatomic, strong)SEGSelectauthorityroleListModel* roleData;
@property (nonatomic, strong)SEGSelectbyaudiencesgroupcodeListModel* roleDataCode;

-(instancetype)initWithType:(SEGEnumEditUsersType)type;
@end

NS_ASSUME_NONNULL_END
